//
//  QLKDataBaseManager.h
//  CloudsOutpatient
//
//  Created by zzs on 15/6/17.
//  Copyright (c) 2015年 HC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "FMDatabasePool.h"
#import "FMDatabaseQueue.h"
#import "FMDatabaseAdditions.h"
#import "SearchHistoryModel.h"
#define TABLE_HOSPITAL           @"hospital"  //医院搜索历史表
#define TABLE_SUFFERER           @"sufferer"  //患者搜索历史表
#define TABLE_NEW_SUFFERER           @"new_sufferer"  //患者搜索历史表

#define TABLE_SUFFERER_SETUP           @"sufferer_setup"  //患者聊天设置

@interface QLKDataBaseManager : NSObject
//数据库操作队列
@property (nonatomic , readonly) dispatch_queue_t databaseQueue;
+(QLKDataBaseManager*)shareDataBaseManager;

@property (retain, nonatomic) FMDatabase* database;
- (FMDatabase *)dataBase;




#pragma mark-搜索历史搜索
-(BOOL)insertHistoryContentToDB:(NSString*)content;
-(BOOL)deleteAllHistoryData;
-(NSArray*)queyAllDrugHistoryContents;


@end
